
package model.test;

import java.util.ArrayList;

/**
 *
 * @author FELIPE & NICOLAS
 */

public abstract class Question {
   
    
    protected String type;
    protected String questionTxt;
    protected int marks;
    protected float penalty;
    protected String imageFile;
    protected String studentAnswer= "";
    
    public void setStudentAnswer(String studentAnswer){
        this.studentAnswer=studentAnswer;
    }
    
    public String getStudentAnswer(){
        return studentAnswer;
    }
    
    public int getMarks()  {
        return marks;
    }
    
    public float getPenalty()  {
        return penalty;
    }

    public String getQuestionTxt() {
        return questionTxt;
    }

    public String getType() {
        return type;
    }
    
   public String getImageFile() {
        return imageFile;
    }


    
    
    //CONSTRUCTOR
    public Question(String questionTxt,int marks,float penalty,String imageFile){
        
        this.questionTxt=questionTxt;
        this.marks=marks;
        this.penalty=penalty;
        this.type="NotSpecified";
        this.imageFile=imageFile;
        
    }
    

    public abstract String toString(); //
    
    
}
